/*
 * @Description: FinalClass
 * @Author: rendc
 * @Date: 2025-03-06 11:06:25
 * @LastEditors: rendc
 * @LastEditTime: 2025-03-06 11:13:41
 */

// public final class FinalClass {
public class FinalClass {
  // 属性
  private String name;
  public final int age = 10;

  public final void setName(String name) {
    this.name = name;
  }

  public void setAge() {
    name = "zs";
    age = 20;
  }

}